#ifndef SM2_FORMAT_H
#define SM2_FORMAT_H

#include "sm2_operation.h"

void sm2_integer_to_bytes(uint8_t out[32], sm2_uint256_t num);
//void sm2_bytes_to_integer(sm2_uint256_t num, uint8_t a[32]);

void char_to_hex(sm2_uint256_t result, const char *hex_block);
char *hex_to_char(sm2_uint256_t n);
void convert_hex_message_to_bytes(uint8_t *result, const char *a);
void convert_message_to_bytes(uint8_t *result, char *a);
void convert_bytes_to_hex_message(char *result, const uint8_t *a, const size_t n);
int sm2_bytes_compare(const uint8_t a[32], const uint8_t b[32]);

#endif
